package com.qqtech.qquan.order.enums;

public enum OrderBaseOrderTypeDictEnum {
	//订单对应的业务类型:1-家政;2-商城;3-闲置品;4-活动;5-代收代送;6-圈商'
	HOMEMAKING(1), QUANMALL(2), IDLE(3), ACTIVITY(4), DELIVERY(5), QSHOP(6);
	int code;

	OrderBaseOrderTypeDictEnum(int code) {
		this.code = code;
	}

	public int getCode() {
		return code;
	}

	public static boolean isInScope(Integer code) {
		if (code == null) {
			return false;
		}
		OrderBaseOrderTypeDictEnum[] arrEnum = OrderBaseOrderTypeDictEnum.values();
		for (OrderBaseOrderTypeDictEnum e : arrEnum) {
			if (e.code == code.intValue()) {
				return true;
			}
		}
		return false;
	}
}
